#ifndef NEWFILEDIALOG_H
#define NEWFILEDIALOG_H

#include <QDialog>
#include <QFileDialog>
#include <QMessageBox>
#include "ui_newFileDialog.h"

class NewFileDialog : public QDialog, Ui::NewFile_dialog
{
    Q_OBJECT
public:
    explicit NewFileDialog(QWidget *parent = 0);

    QString getName()                   {return nameLine->text();}
    QString getPathToOriginal()         {return soundsPathLine->text();}
    QString getPathToResounds()         {return importResounds_line->text();}
    QString getPathToIcon()             {return iconPathLine->text();}

    bool hasIcon()               { if( iconPathLine->text().isEmpty()) return false; return true; }

    int getMaxDiff()    { return maxDifference_spinBox->value(); }

signals:
    void canceled();
    void accepted();

public slots:
    void on_findIcon_button_clicked();
    void on_findPathToSounds_button_clicked();
    void on_findImportDir_button_clicked();

    void on_cancelButton_clicked();
    void on_okButton_clicked();

    void showIcon( QString path);
};

#endif // NEWFILEDIALOG_H
